<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>功能模块</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form">
    <input type="hidden" name="id" value="$!{id}"/>
    <div class="layui-form-item">
        <label class="layui-form-label">功能名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" placeholder="请输入功能名称" autocomplete="off" class="layui-input" value="$!{name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">类型</label>
        <div class="layui-input-block">
            <select name="type">
                #foreach($item in $typeList)
                <option value="$!{item.index()}" ${utils.eq($type,$item.index(),'selected')}>$!{item.note()}</option>
                #end
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <select name="state">
                #foreach($item in $stateList)
                <option value="$!{item.index()}" ${utils.eq($state,$item.index(),'selected')}>$!{item.note()}</option>
                #end
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">ICON图片</label>
        <div class="layui-input-block">
            <input type="text" name="iconUrl" class="form-control" value="$!{iconUrl}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">功能路径</label>
        <div class="layui-input-block">
            <input type="text" name="url" placeholder="请输入功能访问路径" autocomplete="off" class="layui-input" value="$!{url}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">描述</label>
        <div class="layui-input-block">
            <textarea class="layui-textarea" name="note">$!{note}</textarea>
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="确认">
    </div>
</div>
#parse('/footFiles.html')
<script>
layui.config({
  base: '$!{webRoot}/layuiadmin/' //静态资源所在路径
  ,webRoot:'$!{webRoot}'
}).extend({
  index: 'lib/index' //主入口模块
}).use(['index', 'form'], function(){
  var $ = layui.$,form = layui.form;

    $('input[name="iconUrl"]').jfFileManager({
        resDomain:'${resDomain}',
        token:'$!{resToken}',
        multiple:false,
        path:'/judao',
        parent:parent
    });
})
</script>
</body>
</html>